//
// Created by Castle-Moriarty on 2025/11/3.
//

#include <iostream>
using namespace std;

int main() {
    double a{10};
    double b{5};
    auto func =[a,b]() {
        cout << "a + b = "  << a+b << endl;
    };

    int c{43};
    auto func1 =[c]() {
        cout << " inner value: " << c << endl;
    };

    for (size_t i{};i < 5;i++) {
        cout << "outer value: " << c << endl;
        func1();
        ++c;
    }



    return 0;
}